export function createDDE_SA(entcode, nodeID, containerID) {
	const iEntCode = parseInt(entcode);
	const sEntCode = iEntCode.toString(16);
	const iNodeID = parseInt(nodeID);
	const sNodeID = iNodeID.toString(16);
	const iContainerID = parseInt(containerID);
	const sContainerID = iContainerID.toString(16);
	toStringForLength(sEntCode, 8);
	return '0x' + toStringForLength(sEntCode, 8) + toStringForLength(sNodeID, 4) + toStringForLength(sContainerID, 4);
}

export function toStringForLength(num, length) {
	for (var len = (num + '').length; len < length; len = num.length) {
		num = '0' + num;
	}
	return num;
}
